{extend name="public/base" /}

{block name="title"}<title>{$Think.lang.edit}</title>{/block}

{block name="pjax_container"}
<section class="content-header">
    <h1>{$Think.lang.edit_title}</h1>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#tab1" data-toggle="tab">{$Think.lang.base_param}</a></li>
                    <li><a href="#tab2" data-toggle="tab">{$Think.lang.base_password}</a></li>
                    <li><a href="#tab3" data-toggle="tab">{$Think.lang.agent_info}</a></li>
                    <li class="pull-right"><a href="javascript:history.back(-1)" class="btn btn-sm" style="padding:10px 2px;"><i class="fa fa-list"></i> {$Think.lang.back}</a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="tab1">
                        {include file="agent/base" /}
                    </div>
                    
                    <div class="tab-pane" id="tab2">
                        {include file="agent/pass" /}
                    </div>

                    <div class="tab-pane" id="tab3">
                        {include file="agent/info" /}
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<script type="text/javascript">
$(function(){
    /*ajax页面加载icheck，有该控件的页面才需要*/
    $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
        checkboxClass: 'icheckbox_minimal-blue',
        radioClass: 'iradio_minimal-blue'
    });
    
    /*ajax页面加载select2，有该控件的页面才需要*/
    $(".select2").select2({language:"zh-CN"});
})
</script>
{/block}